package de.home.spring.beans;

import org.apache.log4j.Logger;

import de.home.spring.interfaces.IPerson;

public class Person implements IPerson {
	
	private static Logger logger = Logger.getLogger(Person.class);
	
	private int age;
	private String name;
	
	public Person() {
		
	}
	
	public Person(String name, int age) {
		this.name = name;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public int getAge() {
		return age;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setAge(int age) {
		this.age = age;
	}
	
	public void print() {
		logger.info("print called");
		System.out.println("InitMethod" + name + " " + age);
	}

}
